package com.leetroll.media.utils;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.profile.DefaultProfile;

/**
 * @author qdy
 * @date 2023/11/29 9:40
 * 调用服务端接口需要使用AccessKey完成身份验证，AccessKey包括AccessKey ID和AccessKey Secret，也就是上面环境准备中的创建RAM用户并授权步骤
 * AccessKey ID：用于标识用户
 * AccessKey Secret：用于验证用户的密钥。AccessKey Secret必须保密
 */
public class AliyunVodUtil {

    private static String accessKeyId = "";

    private static String accessKeySecret = "";

    public static DefaultAcsClient initVodClient() {
        String regionId = "cn-shanghai";  // 点播服务接入区域
        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
        DefaultAcsClient client = new DefaultAcsClient(profile);
        return client;
    }
}
